//
//  UIBarButtonItem+Action.h
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/3/17.
//  Copyright © 2020 DingC. All rights reserved.
//



#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef void (^SJBarButtonActionBlock)(void);

@interface UIBarButtonItem (Action)
+ (instancetype)fixItemSpace:(CGFloat)space;

/**
 * 只有图片的返回按钮
 */
- (instancetype)initWithImage:(NSString *)imageName actionBlock:(SJBarButtonActionBlock)actionBlock;

/**
 * 只有返回文字的返回按钮
 */
- (instancetype)initWithTitle:(NSString *)title titleColor:(UIColor *)color actionBlock:(SJBarButtonActionBlock)actionBlock;

- (instancetype)initWithImage:(UIImage *)image target:(id)target action:(SEL)action;

- (instancetype)initWithTitle:(NSString *)title font:(UIFont *)font titleColor:(UIColor *)titleColor target:(id)target action:(SEL)action;

- (instancetype)initWithImage:(UIImage *)image title:(NSString *)title font:(UIFont *)font titleColor:(UIColor *)titleColor target:(id)target action:(SEL)action;
@end

NS_ASSUME_NONNULL_END
